import { createBrowserRouter, Route } from "react-router-dom";


import Login from "../views/Login/Login";
import Register from "../views/Login/Register";
import Layout_ from "../views/Layout/Layout";
import Summary_data from "../views/System/Summary_data";
import User_data from "../views/System/User_data";
import Products_data from "../views/System/Products_data";
import Products_control from "../views/System/Products_control";
import Orders_form from "../views/System/Orders_form";
import Ads from "../views/System/Ads";




// const routes = createHashRouter([
//   {
//     path: "/login",
//     Component: Login,
//     children: [
//       {
//         path: "register",
//         Component: Register,
//       },
//     ],
//   },
//   {
//     path: "/layout",
//     Component: Layout_,
//     children: [
//       {
//         path: "summary_data",
//         Component: Summary_data,
//       },
//       {
//         path: "user_data",
//         Component: User_data,
//       },
//       {
//         path: "product_data",
//         Component: Products_data,
//       },
//       {
//         path: "products_control",
//         Component: Products_control,
//       },
//       {
//         path: "orders_form",
//         Component: Orders_form,
//       },
//       {
//         path: "ads",
//         Component: Ads,
//       },
//     ],
//   },
// ]);

// export default createBrowserRouter(routes);
